export default function ({
    axisData,   //数据
    list, //y轴数据列
}) {
    return {
        grid: {
            top: 75,
            left: 50,
            width: '85%',
            height: '80%',
        },
        title: {
            text: '近五年专业变化趋势',
            textStyle: {
                color: '#bcdcff'
            },
            left: 20,
            top: 10
        },
        xAxis: [{
            type: 'category',
            data: list,
            axisPointer: {
                type: 'shadow',
            },
            axisLabel: {
                show: true,
                textStyle: {
                    color: '#bcdcff'
                }
            }
        }],
        yAxis: [{
                type: 'value',
                // name: '水量',
                min: 0,
                max: 5000,
                interval: 1000,
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#bcdcff'
                    }
                }
            },
            {
                type: 'value',
                show: false,
            }
        ],
        series: [{
                // name: '蒸发量',
                type: 'bar',
                data: axisData,
                barWidth: 20,
                itemStyle: {
                    borderRadius: [50, 50, 0, 0],
                    textStyle: {
                        color: 'white'
                    }
                },
                textStyle: {
                    color: 'white'
                }
            },
            {
                // name: '平均温度',
                type: 'line',
                yAxisIndex: 1,
                data: axisData
            }
        ]
    }
}